/**
 * Created by ospip on 2017/10/10.
 * Copyright (c) 2017 LLAP. All rights reserved.
 */
public class VIP extends BankAccount {
    private static double interestRate = 0.0005;

    public VIP(String cardID, String cardHolder, String identity, int expireMonth, int expireYear, int CVV2) {
        super(cardID, cardHolder, identity, expireMonth, expireYear, CVV2);
        super.type = "VIP";
    }

    public void addInterest() {
        super.addInterest(VIP.interestRate);
    }

    public static void main(String[] args) {
        VIP acc = new VIP("6222021108001015676",
                "JOHN DOE", "321000200011110123",
                6, 22, 967);
        acc.addBalance("CNY", 15040);
        acc.addBalance("USD", 3000);
        acc.addInterest();
        acc.deposit("CNY", 300);
        System.out.println(acc.query(6));
        acc.cancel();
        System.out.println(acc);
    }
}
